home *** CD-ROM | disk | FTP | other *** search
- IF
- Determines whether a value or logical expression is zero (FALSE) or nonzero (TRUE) and returns the value in true-value or false-value.
-
- Format: IF (logical, true-value, false-value)
-
- Arguments:
- ΓÇó logical: A numeric value or logical expression.
- ΓÇó true-value: A text or numeric expression.
- ΓÇó false-value: A text or numeric expression.
-
- Example:
- IF (C1,5,10) returns 10 (the false-value) if cell C1 is empty, and returns 5 (the true-value) if C1 is nonzero.
- Shows that if the logical argument evaluates as TRUE (nonzero), the result of the function is the second argument.